from django.db import models
from users.models import UserInfo


class Tags(models.Model):

    name = models.CharField(
        max_length=20,  verbose_name='标签')

    clout = models.IntegerField(default=0, verbose_name='标签热度')

    class Meta:
        db_table = 'tags'
        verbose_name = '标签'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.name
